796c4a0ee7b236530b5d62f1789a09a8ceae62dd,src/main/java/com/forweaver/controller/ProjectController.java,ProjectController,add,#Map#,161
Before Change
int category = 1;
boolean isEducation = false;
if(params.get("category")!= null && params.get("category").equals("on"))
category= 0;
if(params.get("isEducation")!= null && params.get("isEducation").equals("on"))
After Change
int categoryInt = 0;
if(params.get("category") != null)
categoryInt = Integer.parseInt(params.get("category"));
if(!tagService.isPublicTags(tagList))
return "redirect:/project/";